<!DOCTYPE html>
<html>

<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta http-equiv="pragma" content="no-cache">
    <title>添加助管信息</title>
    <meta name="description" content="">
    <meta name="keywords" content="">
    <META HTTP-EQUIV="pragma" CONTENT="no-cache">
    <META HTTP-EQUIV="Cache-Control" CONTENT="no-store, must-revalidate">
    <META HTTP-EQUIV="expires" CONTENT="Wed, 26 Feb 1997 08:21:57 GMT">
    <META HTTP-EQUIV="expires" CONTENT="0">
    <link rel="stylesheet" type="text/css" href="css/bootstrap.min.css">
    <link href="css/style.css" rel="stylesheet">
    <style type="text/css">
    #myModal-add .modal-dialog {
        width: 85%
    }
    </style>
</head>

<body onLoad="checkUser('iframe')">
    <div id="zhuguan-data" class="" v-cloak>
        <div class="panel panel-default">
            <div class="panel-heading">助管信息列表</div>
            <div class="panel-body">
                <div class="row">
                    <div class="col-sm-10">
                        <div class="col-sm-2">
                            <input v-model="query_stuId" type="text" class="form-control" placeholder="学号" >
                        </div>
                        <div class="col-sm-2">
                            <input v-model="query_name" type="text" class="form-control" placeholder="姓名">
                        </div>
                        <div class="col-sm-3">
                            <span>银行：</span>
                            <select v-model="query.bankNo" class="form-control form-select" name="bank" v-on:blur="queryData('all')">
                                <option v-bind:value="bank.bankNo" v-for="bank in banks">{{ bank.bankName }}</option>
                            </select>
                        </div>
                        <button class="btn btn-default" v-on:click="queryData('all')">查询</button>
                    </div>
                </div>
                <table class="table table-bordered mt-10">
                    <tr>
                        <th>学号</th>
                        <th>姓名</th>
                        <th>部门编号</th>
                        <th>部门名称</th>
                        <!-- <th>科室名称</th> -->
                        <th>联系电话</th>
                        <th>银行名称</th>
                        <th>银行卡号</th>

                        <th>操作</th>
                    </tr>
                    <tr v-for="item in items" track-by="$index">
                        <td>{{item.stuId}}</td>
                        <td>{{item.name}}</td>
                        <td>{{item.deptId}}</td>
                        <td>{{item.deptName}}</td>
                        <!-- <td>{{item.creditNum}}</td> -->
                        <td>{{item.telephone}}</td>
                        <td>{{item.bankName}}</td>
                        <td>{{item.bankNo}}</td>
                        
                        <td>
                            <button class="btn btn-default" data-toggle="modal" data-target="#myModal-modify" v-on:click="editZG(item.stuId,item.name)">修改</button>
                        </td>
                    </tr>
                </table>
                <nav>
                    <ul class="pagination">
                        <li v-bind:class="{'disabled': page.disabled, 'active': page.active }" v-for="page in pages"><a v-on:click="submitPage(page.content,page.disabled)">{{page.content}}</a></li>
                    </ul>
                </nav>
            </div>
        </div>
        <!-- 删除模态框（Modal） -->
        <!-- 修改模态框（Modal） -->
        <div class="modal fade" id="myModal-modify" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
            <div class="modal-dialog">
                <div class="modal-content">
                    <div class="modal-header">
                        <button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button>
                        <h4 class="modal-title" id="myModalLabel">编辑助管信息</h4>
                    </div>
                    <div class="form-horizontal mt-10">
                        <div class="form-group">
                            <label for="inputEmail3" class="col-sm-2 control-label">姓名</label>
                            <div class="col-sm-8">
                                <p class="form-control-static">{{stu_edit.name}}</p>
                            </div>
                        </div>
                        <div class="form-group">
                            <label for="inputPassword3" class="col-sm-2 control-label">学号</label>
                            <div class="col-sm-8">
                                <p class="form-control-static">{{stu_edit.stuId}}</p>
                            </div>
                        </div>

                        <div class="form-group">
                            <label for="inputPassword3" class="col-sm-2 control-label">银行</label>
                            <div class="col-sm-8">
                                <input class="form-control" v-model="stu_edit.bankName">
                            </div>
                        </div>
                        <div class="form-group">
                            <label for="inputPassword3" class="col-sm-2 control-label">银行帐号</label>
                            <div class="col-sm-8">
                                <input class="form-control" v-model="stu_edit.bankNo">
                            </div>
                        </div>
                        <div class="form-group">
                            <label for="inputPassword3" class="col-sm-2 control-label">电话号码</label>
                            <div class="col-sm-8">
                                <input class="form-control" v-model="stu_edit.telephone">
                            </div>
                        </div>
                    </div>
                    <!-- </div> -->
                    <div class="modal-footer">
                        <button type="button" class="btn btn-default" data-dismiss="modal">关闭</button>
                        <button type="button" v-on:click="confirmEdit()" class="btn btn-primary">提交更改</button>
                    </div>
                </div>
                <!-- /.modal-content -->
            </div>
            <!-- /.modal -->
        </div>
        <!-- 添加模态框 -->
        <div class="modal fade" id="myModal-add" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
            <div class="modal-dialog">
                <div class="modal-content">
                    <div class="modal-header">
                        <button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button>
                        <h4 class="modal-title" id="myModalLabel">添加助管信息</h4>
                    </div>
                    <div class="modal-footer">
                        <button type="button" class="btn btn-default" data-dismiss="modal">关闭</button>
                        <button type="button" v-on:click="addZhuguan" class="btn btn-primary">提交</button>
                    </div>
                </div>
                <!-- /.modal-content -->
            </div>
            <!-- /.modal -->
        </div>
    </div>
</body>
<script type="text/javascript" src="js/dist/jquery-2.2.4.js"></script>
<script type="text/javascript" src="js/dist/bootstrap.min.js"></script>
<script src="js/common/checkUser.js"></script>

<script type="text/javascript" src="js/dist/vue.js"></script>
<script type="text/javascript" data-main="js/zhuguanD.js" src="js/dist/require.js"></script>
<!-- <script type="text/javascript" src="js/zhuguan.js"></script> -->

</html>
